package com.example.lib_mvicore.ui

import com.example.lib_mvicore.IView

/**
 * @author yaotianxue
 * @description
 * @date 2024/10/25
 */
abstract class BaseMVIActivity:BaseActivity(),IView {
    /**
     * 创建viewmodel
     */
    abstract fun generateViewModel()

    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }

    /**
     * 页面活跃的时候采取处理状态更新UI
     */
    override fun onResume() {
        super.onResume()
        handleState()

    }

}